package com.lagou.demo03.service;

import com.lagou.demo03.dao.StudentDelDao;
import com.lagou.demo03.factory.StudentDelDaoFactory;

public class StudentDelService {
    private StudentDelDao studentDelDao;
    public StudentDelService(){
        this.studentDelDao = StudentDelDaoFactory.getStudentDelDao();
    }

    /**
     * 自定义成员方法实现根据参数指定的Student对象来调用DAO层实现信息删除功能
     */
    public String studentDelService(String delId){
        return studentDelDao.studentDel(delId);
    }
}
